using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Models.APIModels
{
    #region 添加记录返回
    public class AddRecordRetMsgModel
    {
        public StatusModel status { get; set; }
        public AddRecordRetMsgItemModel record { get; set; }
    }
    public class AddRecordRetMsgItemModel
    {
        public int id { get; set; }
        public string name { get; set; }
        public string status { get; set; }
    }
    #endregion
    #region 记录列表
    public class RecordListModel
    {
        public StatusModel status { get; set; }
        public RecordListDomainModel domain { get; set; }
        public RecordListInfoModel info { get; set; }
        public List<RecordListItemModel> records { get; set; }
    }
    public class RecordListDomainModel
    {
        public int id { get; set; }
        public string name { get; set; }
        public string punycode { get; set; }
        public string grade { get; set; }
        public string owner { get; set; }
        public string ext_status { get; set; }
        public int ttl { get; set; }
    }
    public class RecordListInfoModel
    {
        public int sub_domains { get; set; }
        public int record_total { get; set; }
        public int records_num { get; set; }
    }
    public class RecordListItemModel
    {
        public int id { get; set; }
        public string name { get; set; }
        public string line { get; set; }
        public string line_id { get; set; }
        public string type { get; set; }
        public int ttl { get; set; }
        public string weight { get; set; }
        public string value { get; set; }
        public int mx { get; set; }
        public int enabled { get; set; }
        public string status { get; set; }
        public string monitor_status { get; set; }
        public string remark { get; set; }
        public string updated_on { get; set; }
        public string use_aqb { get; set; }
    }
    #endregion
    #region 修改记录返回结构
    public class EditRecordModel
    {
        public StatusModel status { get; set; }
        public EditRecordItemModel record { get; set; }
    }
    public class EditRecordItemModel
    {
        public int id { get; set; }
        public string name { get; set; }
        public string value { get; set; }
        public string status { get; set; }
    }
    #endregion
    #region 更新Ddns记录
    public class UpdateDdnsRetModel
    {
        public StatusModel status { get; set; }
        public UpdateDdnsRetItemModel record { get; set; }
    }
    public class UpdateDdnsRetItemModel
    {
        public int id { get; set; }
        public string name { get; set; }
        public string value { get; set; }
    }
    #endregion
    #region 记录信息
    public class RecordInfoModel
    {
        public StatusModel status { get; set; }
        public RecordInfoDomainModel domain { get; set; }
        public RecordInfoItemModel record { get; set; }
    }
    public class RecordInfoDomainModel
    {
        public int id { get; set; }
        public string domain { get; set; }
        public string domain_grade { get; set; }
    }
    public class RecordInfoItemModel
    {
        public int id { get; set; }
        public string sub_domain { get; set; }
        public string record_type { get; set; }
        public string record_line { get; set; }
        public string record_line_id { get; set; }
        public string value { get; set; }
        public string weight { get; set; }
        public int mx { get; set; }
        public int ttl { get; set; }
        public int enabled { get; set; }
        public string monitor_status { get; set; }
        public string remark { get; set; }
        public string updated_on { get; set; }
        public int domain_id { get; set; }
    }
    #endregion
    #region 设置记录状态返回结构
    public class SetRecordStatusRetModel
    {
        public StatusModel status { get; set; }
        public SetRecordStatusRetItemModel record { get; set; }
    }
    public class SetRecordStatusRetItemModel
    {
        public int id { get; set; }
        public string name { get; set; }
        public string status { get; set; }
    }
    #endregion
}
